<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    <title>Document</title>
    <style>
        .main{
            width: 100%;
            display: flex;
            justify-content: space-between;
        }
        .wrap{
            width: 32%;
            display: flex;
            flex-wrap: wrap;
            /*  */
            flex-direction:column;
        }
        .wrap .item{
            width: 100%;
            background-color: seagreen;
            display: flex;
            margin-bottom: 10px;
        }
        .item1{
            height: 200px;
        }
        .item2{
            height: 100px;
        }
        .item3{
            height: 400px;
        }
        .item4{
            height: 50px;
        }
        .item5{
            height: 100px;
        }
        .item6{
            height: 200px;
        }
        .item7{
            height: 300px;
        }
        .item8{
            height: 400px;
        }
    </style>
</head>
<body>
    <div class="main">
        <div class="wrap">
            <div class="item item1"></div>
            <div class="item item2"></div>
            <div class="item item3"></div>
            <div class="item item4"></div>
        </div>
        <div class="wrap">
            <div class="item item5"></div>
            <div class="item item6"></div>
            <div class="item item7"></div>
            <div class="item item8"></div>
        </div>
        <div class="wrap">
            <div class="item item1"></div>
            <div class="item item2"></div>
            <div class="item item3"></div>
            <div class="item item4"></div>
        </div>
    </div>


</body>
</html>